//
//  GJBrowRaiseV.m
//  GJKeyboard
//
//  Created by Jerry_hqyj on 2017/11/22.
//  Copyright © 2017年 socket. All rights reserved.
//

#import "GJBrowRaiseV.h"
#import "GJBrowMaCell.h"

@interface GJBrowRaiseV ()

@property (nonatomic, copy) NSMutableArray *dataArray;

@end

@implementation GJBrowRaiseV

- (id)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        [self loadData];
        [self initializa];
    }
    
    return self;
}

- (void)loadData
{
    _dataArray = [@[@"f_static_000"] mutableCopy];
}

- (void)initializa
{
    self.backgroundColor = [UIColor whiteColor];
    
    CGFloat btnWidth = 60;

    
    //设置按钮
    UIButton *setBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.width-btnWidth, 0, btnWidth, 30)];
    [setBtn setBackgroundColor:[UIColor blueColor]];
    [setBtn setTitle:@"发送" forState:(UIControlStateNormal)];
    
//    [setBtn setBackgroundImage:[UIImage imageNamed:@"setting"] forState:UIControlStateNormal];
    [setBtn addTarget:self action:@selector(settingAction:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:setBtn];
    
    

}






#pragma mark - 发送按钮
- (void)settingAction:(UIButton *)button {
    if (self.delegate && [self.delegate respondsToSelector:@selector(sendMessage)]) {
        [self.delegate sendMessage];
    }
}



@end
